<!--
描述：招生管理-成绩设置组件
开发人：hqj
开发日期：2019年02月25日
-->
<template lang="pug">
    keep-alive
        kalix-table(bizKey="examScoreSetting" title='成绩设置信息' v-bind:targetURL="targetURL"
        v-bind:bizDialog="bizDialog" v-bind:btnList="btnList" v-bind:dictDefine="dictDefine" v-bind:isFixedColumn="isFixedColumn")
            template(slot="tableColumnSlot")
                el-table-column(prop="majorName" label="专业" align="center")
                el-table-column(prop="province" label="省份" align="center")
                el-table-column(prop="coefficient" label="分数转换系数" align="center")
</template>

<script type="text/ecmascript-6">
    import {ESToolButtonList, ExamScoreSettingURL} from '../../config.toml'

    export default {
        name: 'kalix-enrolment-examscoresetting',
        data() {
            return {
                dictDefine: [{
                    cacheKey: 'ENROLMENT-DICT-KEY',
                    type: '考生专业',
                    targetField: 'majorName',
                    sourceField: 'major'
                }],
                btnList: ESToolButtonList,
                targetURL: ExamScoreSettingURL,
                bizDialog: [
                    {id: 'add', dialog: 'ExamScoreSettingAdd'},
                    {id: 'edit', dialog: 'ExamScoreSettingAdd'}
                ],
                isFixedColumn: true
            }
        },
        components: {},
        mounted() {
        },
        activated() {
        },
        deactivated() {
        },
        methods: {}
    }
</script>

<style lang="stylus">
    .demo-table-expand
        label
            width 200px
            color #99a9bf
        .el-form-item
            margin-bottom 0
</style>
